package com.mnxc.gxa.mapper;

import com.mnxc.gxa.entity.Menu;
import com.mnxc.gxa.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mnxc
 * @since 2023-06-29
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> getAll();

    boolean freezeUser(User user);
    
    boolean activeUser(User user);

    boolean deleteUser(User user);

    List<Menu> getMenusById(Long id);

    void resetPasswordByIds(List<Long> ids);
}
